<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDiscountXGoodsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {

        Schema::create('discount_x_goods', function(Blueprint $table)
        {
            //商品绑定的促销规则
            $table->increments('id');
            $table->integer('goods_id')->defatlt(0)  ->comment('商品id');
            $table->integer('discount_sales_rule_id')->defatlt(0)->comment('折扣id');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
